<?php $form = $this->beginWidget('CActiveForm', array(
	'id' => 'host-auto-login-form',
	'method' => $HostLogin->PlainMethod,
	'action' => $HostLogin->makeUpLink()
)); ?>
	<?php echo CHtml::hiddenField($HostLogin->field_username, $HostLogin->username); ?>
	<?php echo CHtml::hiddenField($HostLogin->field_password, $HostLogin->getPlainPassord()); ?>
<?php $this->endWidget(); ?>

<script>
	$(document).ready(function(){
		$('#host-auto-login-form').submit();
	});
</script>